#include <iostream>
#include <string>

using namespace std;

/*
 *  argc 表示参数数量
 *  argv 表示参数列表
 */
int main(int argc, char *argv[])
{
    string num1, num2;

    /*
    // cin cout
    cout << "Enter number 1: ";
    cin >> num1;
    cout << "Enter number 2: ";
    cin >> num2;
    int number1 = stoi(num1);
    int number2 = stoi(num2);
    cout << "number1: " << number1 << endl << "number2: " << number2 << endl;
    cout << "number1 + number2 = " << number1 + number2 << endl;
    cout << number1 << " + " << number2 << " = " << number1 + number2 << endl;

    // printf
    printf("%d + %d = %d\r\n", number1, number2, number1+number2);
    */

    if(argc > 1){
        cout << "you input " << argc << " arguments" << endl;
        for(size_t i=0; i<argc; i++){
            cout << "arg: " << i << " : "<< argv[i] << endl;
        }
    }
}
